package sat.model;


import sat.component.UseCaseAssociationComponent;
import sat.component.UseCaseActorComponent;

public class UseCaseModel {
	private String content;
	
	private UseCaseAssociationComponent viewOval; 
	private UseCaseActorComponent viewPeople;
	
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	
	
	public UseCaseModel (UseCaseAssociationComponent vOval,UseCaseActorComponent vPeople){
		viewOval = vOval; 
		viewPeople = vPeople; 
	}
	
	public void refreshModel(String content){
		this.content = content;
		if(viewOval!=null)
			viewOval.refreshView(this.content);
		if(viewPeople!=null)
			viewPeople.refreshView(this.content);

	}
	
}
